package com.kvn.dubbo.service;

import com.kvn.dubbo.DemoService;
import org.springframework.stereotype.Service;

/**
 * Created by wangzhiyuan on 2019/1/29
 */
@Service
public class DefaultDemoRestService implements DemoService {


    @Override
    public String sayHello(String name) {
//        throw new RuntimeException(name);
        return "Hello, " + name + " (From DefaultDemoRestService)";
    }
}
